package com.jbit.examSystem.dao;

import com.jbit.examSystem.param.RankingParam;
import com.jbit.examSystem.pojo.Score;
import com.jbit.examSystem.pojo.ScoreVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScoreDao {
    Integer addScore(Score score);

    List<ScoreVo> list(@Param("stuNo") int stuNo);

    List<Score> getAllScores(RankingParam param);

    Score getScoreByExamIdAndStudentId(@Param("studentId") Integer studentId, @Param("examId") Integer examId);
}
